
# include "dfxMutex_Win32.h"

namespace DFX
{
    Mutex_Win32::Mutex_Win32()
    {
        InitializeCriticalSection(&mCS);
    }

    Mutex_Win32::~Mutex_Win32()
    {
        DeleteCriticalSection(&mCS);
    }

    void Mutex_Win32::Lock()
    {
        EnterCriticalSection(&mCS);
    }
    void Mutex_Win32::Unlock()
    {
        LeaveCriticalSection(&mCS);
    }
}